{# A name clicked in Overseer > Code (overseer_code.symbol_context), peeking beside it: where it is defined and every line naming it, each a link to its line. #} {% from "pages/overseer/_macros.html" import line_link %} {% macro place(where) %}
{{ line_link(where.path, where.line) }}{{ where.text }}
{% endmacro %}

{{ symbol_name or "No name here" }}

{% if symbol_definition %}

Defined at

{{ place(symbol_definition) }}

{{ symbol_references|length }} reference{{ "" if symbol_references|length == 1 else "s" }}

{% for where in symbol_references %}{{ place(where) }}{% endfor %}
{% elif symbol_name %}

Not defined in the project's source: a library's, Python's own, or one reached through an object, which this index does not follow.

{% else %}

Click a name in a Python file.

{% endif %}